<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link href="/public/static/index/css/orange.css" rel="stylesheet">
	<title>详情-浙江星全汽车服务有限公司</title>
	<link rel="icon" href="" type="image/x-icon">
    <meta name="keywords" content="星全,吉利" /> 
    <meta name="description" content="浙江星全汽车服务有限公司公司以提升顾客价值为使命，致力于缩短汽车行业的交易环节，提升交易效率， 降低客户购买成本。" /> 
	<link rel="stylesheet" type="text/css" href="/public/static/index/css/font_1453778523_565942.css">
	<link rel="stylesheet" media="screen" href="/public/static/index/css/main-old_d5d487c.css">
	<link rel="stylesheet" media="screen" href="/public/static/index/css/pintuer_3aac67f.css">
	<link rel="stylesheet" media="screen" href="/public/static/index/css/main-new.css">
	<link rel="stylesheet" media="screen" href="/public/static/index/css/selectordie_theme_03_fb17e79.css">
	<style type="text/css">                    
		.container {width:1190px}
    </style>

<link href="/public/static/index/css/WdatePicker.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/public/static/index/css/layer.css" id="layui_layer_skinlayercss" style="">
</head>
<script src="/public/static/index/js/jquery-3.2.1.min.js"></script> 
<script src="/public/static/index/js/distpicker.js"></script> 
<script src="/public/static/index/js/main.js"></script> 
<body style="">
	
<nav id="nav-inside" class="bg-main container-layout">
	<div class="container">
		<a href="/" target="_self"><img src="/public/static/index/images/starLOGO.png" class="float-left">
        </a>
		<ul class="list-inline float-left">
			<li><a href="/" >首页</a></li>
            <li><a href="/index/index/brand" >选车</a></li>
            <li><a href="/index/index/contact" >联系我们</a></li>
            <li><a href="/index/index/faq" >FAQ</a></li>
		</ul>

	</div>
</nav>

<div class="container margin-big-top" id="detail-head">
	<div class="float-left ">
		<h1 class="float-left">
        <?php 
        if (isset($productInfo['name']) && !empty($productInfo['name'])) {
            echo $productInfo['name'];
        }
        ?>      
        </h1>
		<span class="text-gray-light float-left margin-big-left selectHide">|</span>
		<h3 class="float-left" style="padding-left:15px;">
        <?php 
        if (isset($productInfo['abstract']) && !empty($productInfo['abstract'])) {
            echo $productInfo['abstract'];
        }
        ?>  
        </h3>
	</div>
</div>
<hr>

<div id="detail-info-wrap" class="container selectHide">
	<div class="float-left detail-info-img">
		<div class="carimg-show">
            <?php 
            if (isset($productInfo['img']) && !empty($productInfo['img'])) {
                echo '<img src="/public/uploads/'.$productInfo['img'].'" width="520" height="345">';
            }
            ?>
		</div>

	</div>
	<div class="float-left detail-info">
		<ul class="clearfix price-wrap">
            <div class="wangchePrice">
                <span style="font-size:18px;">星 全 价</span>  <span class="carPrice">￥ <span style="font-size:18px;font-weight:bold;">
                <?php 
                if (isset($productInfo['star_price']) && !empty($productInfo['star_price'])) {
                    echo $productInfo['star_price'];
                }
                ?>
                </span> 万</span>  <span class="discount" style="font-size:18px;">优惠 
                <?php 
                if (isset($productInfo['discount']) && !empty($productInfo['discount'])) {
                    echo $productInfo['discount'];
                }
                ?>
                万</span>
            </div>
            <div class="directPrice">
                <span style="font-size:18px;">指 导 价</span>  <b class="line-through">￥ 
                <?php 
                if (isset($productInfo['guidance_price']) && !empty($productInfo['guidance_price'])) {
                    echo $productInfo['guidance_price'];
                }
                ?>
                万</b>
            </div>
            <div class="referPrice">
            
                <span style="font-size:18px;">落地参考价</span>  <b>￥ 
                <?php 
                if (isset($productInfo['actual_price']) && !empty($productInfo['actual_price'])) {
                    echo $productInfo['actual_price'];
                }
                ?>
                 万</b>
            </div>
		</ul>
		<table border="0" cellspacing="0" cellpadding="0" class="color-wrap">
			<tbody>
			<tr>
				<td>
					<div class="buy-btn-wrap padding-large-top">
                        <a class="bg-main buyBtn margin-small-left" style="cursor: pointer;">购车意向</a>
					</div>
				</td>
			</tr>
		</tbody></table>
		<div class="chart-wrap" id="chart-wrap" style="display: none;">
			
		</div>
	</div>
</div>

<div class="layout selectHide" id="detail-nav">
	<div class="container clearfix">
		<ul class="float-left">
			<li id="infoClass" class="active"><a href="#poster" target="_self">车型配置亮点</a></li>
			<li id="configureClass"><a href="#edge" target="_self">车型参数&amp;配置</a></li>
		</ul>
	</div>
</div>

<div class="layout selectHide" id="poster">
	<div class="container">
		<h2>车型配置亮点</h2>
        <div style="width:1180px;margin:10px;">
    		<div class="pic1" >
            <?php 
            if (isset($productInfo['pic1']) && !empty($productInfo['pic1'])) {
                echo '<img src="/public/uploads/'.$productInfo['pic1'].'" width="1180px" height="700px">';
            }
            ?>
    		</div>
        </div>
        <div style="width:1200px;">
            <div class="float-left" style="margin:10px;">
            <?php 
            if (isset($productInfo['pic2']) && !empty($productInfo['pic2'])) {
                echo '<img src="/public/uploads/'.$productInfo['pic2'].'" width="380px" height="280px">';
            }
            ?>
            </div>
            <div class="float-left" style="margin:10px;">
            <?php 
            if (isset($productInfo['pic3']) && !empty($productInfo['pic3'])) {
                echo '<img src="/public/uploads/'.$productInfo['pic3'].'" width="380px" height="280px">';
            }
            ?>
            </div>
            <div class="float-left" style="margin:10px;">
            <?php 
            if (isset($productInfo['pic4']) && !empty($productInfo['pic4'])) {
                echo '<img src="/public/uploads/'.$productInfo['pic4'].'" width="380px" height="280px">';
            }
            ?>
            </div>
        </div>
        <div class="clear"></div>
	</div>
</div>
<div class="layout selectHide" id="edge">
	<div class="container">
		<h2>车型配置参数</h2>
			<h3 class="text-big height-large"><span class="text-main">●</span><b> 车型参数</b></h3>
			<table class="">
				<tbody>
                <?php

                if (isset($productInfo['info']) && !empty($productInfo['info'])) {
                    $info = json_decode($productInfo['info'],true);

                    if (is_array($info) && count($info) > 0) {
                        $info1 = array_chunk($info,2,true);
                        foreach ($info1 as $val) {
                            echo "<tr>";
                            if (is_array($val) && count($val) > 0) {
                                $i = 0;
                                foreach ($val as $key=>$value) {
                                    if ($i == 1) {
                                        echo '<td style="border-bottom: 0;"></td>';
                                    }
                                    echo "<td>".$key."</td>";
                                    echo "<td>".$value."</td>";
                                    $i++;
                                }
                            }
                            echo "</tr>";
                        }
                    }
                }
                ?>
				</tbody>
			</table>
			
			<h3 class="text-big height-large"><span class="text-main">●</span><b> 配置</b></h3>
			
			<table class="">
				<tbody>
				<?php
                if (isset($productInfo['configure']) && !empty($productInfo['configure'])) {
                    $configure = json_decode($productInfo['configure'],true);

                    if (is_array($configure) && count($configure) > 0) {
                        $configure1 = array_chunk($configure,2,true);
                        foreach ($configure1 as $val) {
                            echo "<tr>";
                            if (is_array($val) && count($val) > 0) {
                                $i = 0;
                                foreach ($val as $key=>$value) {
                                    if ($i == 1) {
                                        echo '<td style="border-bottom: 0;"></td>';
                                    }
                                    echo "<td>".$key."</td>";
                                    echo "<td>".$value."</td>";
                                    $i++;
                                }
                            }
                            echo "</tr>";
                        }
                    }
                }
                ?>
				</tbody>
			</table>
	</div>
</div>


<footer id="footer">
	<div class="container">
		<div class="x9 float-left">

			<ul class="list-inline footer-nav">
				<li><a href="/index/index/introduce" >平台简介</a></li>
                <li class="split">|</li>
                <li><a href="/index/index/flow" >购车流程</a></li>
                <li class="split">|</li>
                <li><a href="/index/index/contact" >联系我们</a></li>
			</ul>
            
			<div class="cooperation float-left">
				<h2>合作伙伴</h2>
				<ul class="list-inline">
					<li>
						<a href="#" ><img src="/public/static/index/images/fr/KDLOGO.png"></a>
					</li>
					<li>
						<a href="#" ><img src="/public/static/index/images/fr/JS.jpg"></a>
					</li>
					<li>
						<a href="#" ><img src="/public/static/index/images/fr/YD.jpg"></a>
					</li>					
					<li>
						<a href="#" >
							<img src="/public/static/index/images/fr/TBlogo.jpg"></a>
					</li>
					<li>
						<a href="#" ><img src="/public/static/index/images/fr/sls.jpg"></a>
					</li>
				</ul>
			</div>
            <div class="friend-links float-left">
                <h2>友情链接</h2>
                <ul class="list-inline">
                    <li>
                        <a href="http://www.gleagleev.com/" target="_blank">浙江吉合康电动汽车销售有限公司</a>
                    </li>
                    <li>
                        <a href="http://www.ydsh150.com/" target="_blank">浙江巨声网络技术有限公司</a>
                    </li>
                </ul>
            </div>

		</div>
        <div class="float-right">
          <div class="float-left">
            <img src="/public/static/index/images/starWei.jpg" width="100px" height="100px" />
          </div>
          <div class="float-right" style="padding:20px 0 10px 20px;">
            <p style="font-size: 20px;color: #7a7a7a;">扫描二维码</p>
            <p style="font-size: 18px;color: #7a7a7a;">关注星全微信公众号</p>
          </div>
          <div class="clear"> 
            <p style="font-size: 18px;color:#7a7a7a;">客服电话：0571-28098514</p>
          </div>
        </div>
		<div class="copyright x12" >
          <div style="width:400px;margin:0 auto;padding:20px 0;">
          <p style="float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#939393;font-size: 14px;">版权所有:浙江星全汽车服务有限公司 浙ICP备17054713号-1 </p>
          </div>
        </div> 
        <div style="width:300px;margin:0 auto; padding:20px 0;"> 
         <a style="display:inline-block;text-decoration:none;height:20px;line-height:20px;"><p style="float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#939393;">技术支持：杭州诺巴哥科技有限公司</p></a> 
        </div> 
	</div>

	<div class="bg-warper" style="display: none;z-index: 80;"></div>
    <div class="setbox loginbox" style="display:none;z-index: 100;">
        <div class="reg-warp">
            <div class="reg-top">
                <span style="color: #252525">购车意向</span>
                <a class="close" style="color: #252525">关闭</a>
            </div>
            <p class="err_tips_lg"></p>
            <form method="post">
                <div class="reg-main">
                    <input type="hidden" name="productId" value="<?php echo $productInfo['id'];?>">
                    <input type="hidden" name="pinfo" value="<?php echo $productInfo['name']."-".$productInfo['abstract'];?>">
                    <div class="option">
                        <span class="text-right" style="color: #252525">姓名</span>
                        <input type="text" name="name">
                    </div>
                    <div class="option">
                        <span class="text-right" style="color: #252525">手机号</span>
                        <input type="text" maxlength="11" name="phone">
                    </div>
                    <div class="option" data-toggle="distpicker">
                        <span class="text-right" style="color: #252525">省份</span>
                        <select name="province" style="width:178px;height:30px;margin-bottom: 15px;"></select>
                        <br/>
                        <span class="text-right" style="color: #252525">市</span>
                        <select name="city" style="width:178px;height:30px;margin-bottom: 15px;"></select>
                        <br/>
                        <span class="text-right" style="color: #252525">区/县</span>
                        <select name="area" style="width:178px;height:30px;margin-bottom: 15px;"></select>
                    </div>
                    <!-- <div class="option"><span class="text-right">省份</span>
                        <input type="text" name="province">
                    </div>
                    <div class="option"><span class="text-right">市</span>
                        <input type="text" name="city">
                    </div>
                    <div class="option"><span class="text-right">区/县</span>
                        <input type="text" name="area">
                    </div> -->
                    <a class="denglu" id="set" style="cursor: pointer;">提交</a>
                </div>
            </form>
        </div>
    </div>

    <div class="msgbox loginbox" style="display:none;z-index: 100;">
        <div class="reg-warp">
            <div class="reg-top">
                <span style="color: #252525">提示</span>
            </div>
            <p class="err_tips_lg"></p>
            <form method="post">
                <div class="reg-main">
                    <div class="option">
                        <span id="msg" class="text" style="color: #252525;width:300px;"></span>
                    </div>
                    <a class="denglu" id="msgok" style="cursor: pointer;">确定</a>
                </div>
            </form>
        </div>
    </div>
</footer>
</body>
</html>
<script type="text/javascript">
    $("#infoClass").click(function() {
        $("#infoClass").addClass("active");
        $("#configureClass").removeClass("active");
    });
    $("#configureClass").click(function() {
        $("#configureClass").addClass("active");
        $("#infoClass").removeClass("active");
    });
    $(".buyBtn").click(function(){
        $(".setbox").css("display","block");
        $(".bg-warper").css("display","block");
    });
    $(".close").click(function(){
        $(".setbox").css("display","none");
        $(".bg-warper").css("display","none");
    });
    $("#msgok").click(function(){
        $(".msgbox #msg").html("");
        $(".bg-warper").css("display","none");
        $(".msgbox").css("display","none");
    });

    $("#set").click(function(){
        var name = $(":input[name='name']").val();
        if (name == null || name == undefined || name == "") {
            alert("请输入正确姓名!");
            return false;
        }

        var phone = $(":input[name='phone']").val();
        if (phone == null || phone == undefined || phone == "") {
            alert("请输入正确手机号!");
            return false;
        }
        re = /^1\d{10}$/
        if (re.test(phone)) {
            
        } else {
            alert("请输入正确手机号");
            return false;
        }

        var province = $(":input[name='province']").find("option:selected").val();
        if (province == null || province == undefined || province == "") {
            alert("请选择正确省份!");
            return false;
        }

        var city = $(":input[name='city']").find("option:selected").val();
        if (city == null || city == undefined || city == "") {
            alert("请选择正确城市!");
            return false;
        }

        var area = $(":input[name='area']").find("option:selected").val();
        if (area == null || area == undefined || area == "") {
            alert("请选择正确区县!");
            return false;
        }

        var productId = $(":input[name='productId']").val();
        var pinfo = $(":input[name='pinfo']").val();
        
        $.ajax({
            type: "POST",
            url: "/index/index/addIntention",
            data:{
                "productId":productId,
                "pinfo":pinfo,
                "name":name,
                "phone":phone,
                "province":province,
                "city":city,
                "area":area
            },
            dataType: "json",
            success: function(resp){
                $(".setbox").css("display","none");
                $(":input[name='name']").val("");
                $(":input[name='phone']").val("");
                $(":input[name='province']").val("");
                $(":input[name='city']").val("");
                $(":input[name='area']").val("");
                $(".msgbox").css("display","block");
                $(".msgbox #msg").html(resp['msg']);
            }
        });
    });
</script>